package com.diandi.activity.service;

import com.diandi.activity.bean.LotteryTicket;
import com.diandi.ddsb.bean.Result;
import com.diandi.ddsb.bean.Staff;
import com.diandi.ddsb.vo.LotteryTicketInfoVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

import static com.diandi.Constant.APPLICATION_NAME;

/**
 * Created by a on 2018/3/27.
 */
@FeignClient(APPLICATION_NAME)
@RequestMapping("lotteryTicketService")
public interface LotteryTicketService {

    /**
     * 获取奖券列表
     */
    @RequestMapping("queryLotteryTickets")
    public List<LotteryTicket> queryLotteryTickets(@RequestParam Map paramMap);

    /**
     * 查询符合条件的奖券数量
     */
    @RequestMapping("queryLotteryTicketCount")
    public Integer queryLotteryTicketCount(Map paramMap);

    /**
     * 新增奖券
     *
     * @return
     */
    @RequestMapping(value = "insertLotteryTickets",method = RequestMethod.POST)
    public Result insertLotteryTicket(@RequestBody LotteryTicketInfoVo lotteryTicket);

    /**
     * 根据Id查询奖券基本信息
     */
    @RequestMapping(value = "getLotteryTicketById",method = RequestMethod.POST)
    public LotteryTicketInfoVo getLotteryTicketById(@RequestParam("id") Long id);

    /**
     * 修改奖券信息
     *
     */
    @RequestMapping(value = "updateLotteryTicket",method = RequestMethod.POST)
    public int updateLotteryTicket(@RequestBody LotteryTicketInfoVo lotteryTicket);

    @RequestMapping(value = "queryTicketCombox",method = RequestMethod.POST)
    List<Map<String, Object>> queryTicketCombox();

}
